package com.zwr.sheller.shop.mapper;

import com.zwr.sheller.core.pojo.Reduction;
import tk.mybatis.mapper.common.Mapper;

import java.sql.Timestamp;
import java.util.List;
import java.util.Map;

/**
 *
 *@author Kang
 *@date
 */
public interface ReductionMapper extends Mapper<Reduction> {
    /**
     * 查询数据
     * @param manner 策略状态
     * @param timePeriod 时间状态
     * @param name 模糊
     * @param marketersId 商户id
     * @param  page 页数
     * @return 返回策略
     */
   List< Map<String,Object>> selectByNameByTimeByManner(Integer manner,  Integer timePeriod,String name,Long marketersId,Integer page);

    /**
     *
     * 查询数据
     * @param manner 策略状态
     * @param timePeriod 时间状态
     * @param name 模糊
     * @return 数据条数
     */
   Map selectByNameByTimeByMannerCount(Integer manner, Integer timePeriod,String name,Long marketersId);
}
